﻿<UserControl x:Class="NotificationPanel.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="150" d:DesignWidth="800" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">

    <Grid x:Name="LayoutRoot" Background="White">
        <!--Image Height="64" HorizontalAlignment="Left" Margin="12,12,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="64" /-->
        <Button Content="ACK" Height="23" HorizontalAlignment="Left" Margin="12,12,0,0" Name="btnACK" VerticalAlignment="Top" Width="64" Click="btnACK_Click" />
        <Button Content="Refresh" Height="23" HorizontalAlignment="Left" Margin="12,43,0,0" Name="btnRefresh" VerticalAlignment="Top" Width="64" Click="btnRefresh_Click" />
        <sdk:DataGrid AutoGenerateColumns="False" Margin="82,12,12,12" Name="dgNotifications">
            <sdk:DataGrid.Columns>
                <sdk:DataGridTextColumn Header="ID" Visibility="Collapsed" Binding="{Binding Identifier}" IsReadOnly="True" />
                <sdk:DataGridTextColumn Header="ImportanceID" Visibility="Collapsed" Binding="{Binding ImportanceID}" IsReadOnly="True" />
                <sdk:DataGridTextColumn SortMemberPath="ImportanceID" Header="Importance" Binding="{Binding Importance}" IsReadOnly="True" CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto" />
                <sdk:DataGridTextColumn Header="Date/Time" Binding="{Binding Updated}" IsReadOnly="True" CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto" />
                <sdk:DataGridTemplateColumn Header="Item">
                    <sdk:DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <HyperlinkButton Name="ItemLink" Content="{Binding ItemTitle}" TargetName="_blank" NavigateUri="{Binding ItemURI}" VerticalAlignment="Center" HorizontalAlignment="Left" />
                        </DataTemplate>
                    </sdk:DataGridTemplateColumn.CellTemplate>
                </sdk:DataGridTemplateColumn>

                <sdk:DataGridTextColumn Header="Message" Binding="{Binding Title}" IsReadOnly="True" CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="*" />
            </sdk:DataGrid.Columns>
        </sdk:DataGrid>
    </Grid>
</UserControl>
